package cn.gcxy.petstore.dao;


import cn.gcxy.petstore.model.Pet;
import java.sql.SQLException;
import java.util.ArrayList;

public interface IPetDAO {
    public boolean UpdatePet(Pet pet, int buyer_id, int seller_id)throws  SQLException;
    public boolean AddPet(Pet pet)throws  Exception;//��
    public ArrayList<Pet> FindPetByType(String type)throws SQLException;//ͨ�����Ͳ�
    public ArrayList<Pet> FindAllPets()throws SQLException;//������
    public ArrayList<Pet> FindByOwner(int id)throws SQLException;
    public ArrayList<Pet> FindByStore(int id)throws SQLException;
    public Pet FindPetById(int id)throws SQLException;
}
